%option noyywrap
%{
	#include <set>
	#include <string>
	using namespace std;
	int integers=0;
	int unique_integer=0;
	set<string> table;
%}

digit	[0-9]
number	{digit}+(\.{digit}+)?(E[+\-]?{digit}+)?
%%

^[0-9]{9}	{printf("201492466");}
NAME$	{printf("HB");}
{number}	{printf("%.f",0.5+atof(yytext)*2+201492466);integers++;table.insert(yytext);}
.	{ECHO;}

%%

int main()
{
	yylex();
	printf("the total number of integers is %d, and the unique numbers is %d",integers,table.size());
	return 0;
}

